<%@ page language="java" contentType="text/html; utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<ul class="fly-list">
<c:forEach var="article" items="${page.content}">
  <li>
    <a href="/user/home/${article.owner.userId}/" class="fly-avatar">
      <img src="${article.owner.userHeadImage}" alt="${article.owner.userName}">
    </a>
    <h2>
      <a class="layui-badge">${article.category.categoryName}</a>
      <a href="/article/${article.articleId}/">${article.articleTitle}</a>
    </h2>
    <div class="fly-list-info">
      <a href="/user/home/${article.owner.userId}/" link>
        <cite>${article.owner.userName}</cite>
        <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
        <i class="layui-badge fly-badge-vip">VIP3</i>
      </a>
      <span><f:formatDate value="${article.articleBuildDate}" pattern="yyyy-MM-dd"/> </span>

      <span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻"><i
              class="iconfont icon-kiss"></i> 60</span>
      <c:choose>
        <c:when test="${article.articleOver==1}">
          <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
        </c:when>
        <c:when test="${article.articleOver==0}">
          <span class="layui-badge fly-badge-accept layui-hide-xs">未结</span>
        </c:when>
      </c:choose>
      <span class="fly-list-nums">
                            <i class="iconfont icon-pinglun1" title="回答">${article.articleCommentNumber}</i>
                        </span>
    </div>
    <div class="fly-list-badge">
      <c:if test="${! empty article.articleTop}">
        <span class="layui-badge layui-bg-black">置顶</span>
      </c:if>
      <!--
      <span class="layui-badge layui-bg-black">置顶</span>
      <span class="layui-badge layui-bg-red">精帖</span>
      -->
    </div>
  </li>
</c:forEach>
</ul>
<c:if test="${page.content.size()==0}">
  <div class="fly-none">没有相关数据</div>
</c:if>